//
//  NSString+GXWSize.m
//  彩票
//
//  Created by 龚昕炜 on 16/6/14.
//  Copyright © 2016年 龚昕炜. All rights reserved.
//

#import "NSString+GXWSize.h"

@implementation NSString (GXWSize)

- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize
{
    return [self boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : font} context:nil].size;
}

@end
